<?php

namespace addons\Minerva\common\models;

use Yii;

/**
 * This is the model class for table "{{%minerva_server_group}}".
 *
 * @property int $id 主键id
 * @property string $group_name 服务器组名称
 * @property int $status -1:已删除,0:禁用,1:正常
 */
class MinervaServerGroup extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%minerva_server_group}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['group_name'], 'required'],
            [['status'], 'integer'],
            [['group_name'], 'string', 'max' => 16],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => '主键id',
            'group_name' => '服务器组名称',
            'status' => '-1:已删除,0:禁用,1:正常',
        ];
    }
}
